package mapper;

import entity.Permission;
import entity.Role;
import entity.TreeVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @Author Administrator
 * @create 2020.06.18 下午 8:55
 */
public interface PermissionMapper {
    Permission selectRoleAndPer(Integer Role_id);

    List<TreeVo> selectAllPermissionToTree(Integer pid);

    List<Permission> selectByMap(Map<String, Object> params);
@Select("select * from permission")
    List<Permission> selectAll();

    int insert(Permission permission);
}
